* lisp/simple.el (clean-mode): Simplify the property exclusion.
(dolist (overlay (overlays-in (point-min) (point-max)))
(delete-overlay overlay))
(set-text-properties (point-min) (point-max) nil)
- (setq-local after-change-functions
- (list
- (lambda (begin end _length)
- (set-text-properties begin end nil))))))
+ (setq-local yank-excluded-properties t)))
;; Special major modes to view specially formatted data rather than files.